package com.dolphin.aiagentplatform.ai.client;

import com.dolphin.aiagentplatform.ai.constant.AgentTypeConst;
import com.dolphin.aiagentplatform.ai.constant.ModelTypeConst;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import static com.dolphin.aiagentplatform.ai.constant.AgentTypeConst.CHAT;

@Configuration
public class QwenMaxClientGenerator extends AbstractChatClientGenerator {

    @Value("${dolphin.ai.qwen-max.base-url}")
    private String baseUrl;

    @Value("${dolphin.ai.qwen-max.api-key}")
    private String apiKey;

    @Value("${dolphin.ai.qwen-max.model-name}")
    private String modelName;

    @Override
    protected String getBaseUrl() {
        return baseUrl;
    }

    @Override
    protected String getApiKey() {
        return apiKey;
    }

    @Override
    protected String getModelName() {
        return modelName;
    }

    @Override
    public AgentTypeConst getChatType() {
        return CHAT;
    }

    @Override
    public ModelTypeConst getModelType() {
        return ModelTypeConst.QWEN_MAX;
    }
}
